<html lang='en'>
	<head>
		<title>smeoa</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
	</head>
	<?php
echo 'aaaaa啊';
// phpinfo();

$pdo = new PDO("mysql:host=localhost;dbname=php","root","root");
$pdo->query('set names utf8;');
if($pdo -> exec("insert into user(username,password) values('ti分tle','content')")){
    echo "插入成功！";
    echo $pdo -> lastinsertid();
}
$rs = $pdo -> query("select * from user"); 
while($row = $rs -> fetch()){ 
print_r($row); 
} 

?>

	<body>
	</body>
	</html>
